#include <iostream>

using namespace std;

//11
class A{
public:
    int data;
    A(int data)
    {
        this->data=data;
    }
    void printfinfo()
    {
        cout<<data<<endl;
    }
};

class B:  virtual public A
{
public:
    B(int data):A(data)
    {

    }
};

class C:virtual public A
{
public:
    C(int data):A(data)
    {

    }
};


class D:public B,public C
{
public:
    D(int data):A(data),B(data),C(data)
    {

    }
};


int main()
{
    D d(10);
    d.printfinfo();
    //d.data=10;
    return 0;
}
